/**
 * Copyright (C), 2015-2019, XXX有限公司
 * FileName: PaymentResponseEnum
 * Author:   zhouheng
 * Date:     2019/5/15 9:19
 * Description:
 * History:
 * <author>          <time>          <version>          <desc>
 * 作者姓名           修改时间           版本号              描述
 */

package com.star.pay.service.core.common;

/**
 * 〈一句话功能简述〉<br> 
 * 〈〉
 *
 * @author zhouheng
 * @create 2019/5/15
 * @since 1.0.0
 */
public enum PaymentResponseEnum {
    SUCCESS(0,"请求处理成功"),
    SYS_PARAM_NOT_RIGHT(1001, "请求参数校验失败"),
    PAYMENT_PROCESSOR_FAILED(1002,"支付失败");

    private final int code;
    private final String msg;

    PaymentResponseEnum(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public int getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }

    public String getMsg(String detailDesc){
        return msg+" : "+detailDesc;
    }
}
